﻿using Nancy;
using Nancy.Bootstrapper;
using Nancy.Session;
using Nancy.TinyIoc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace jczUserService
{
    public class CustomBootstrapper : DefaultNancyBootstrapper
    {
        protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
        {
            //enable the cookie
            CookieBasedSessions.Enable(pipelines);
            //Prevent errors on Linux
            StaticConfiguration.DisableErrorTraces = false;
        }
    }
}
